package com.anttribe.dbdocument.mapper;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import com.anttribe.components.db.metadata.entity.DbTable;
import com.anttribe.dbdocument.model.DbTableExt;

/**
 * @author zhaoyong
 * @date 2021/11/17 0017
 */
@Mapper
public interface DbTableMapper {

    DbTableMapper INSTANCE = Mappers.getMapper(DbTableMapper.class);

    /**
     * DbTable 转 DbTableExt
     *
     * @param dbTable
     *            DbTable
     * @return DbTableExt
     */
    DbTableExt toDbTableExt(DbTable dbTable);

}
